/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import java.io.File;
/*    */ import java.io.IOException;
/*    */ import java.io.OutputStream;
/*    */ import java.io.RandomAccessFile;
/*    */ import java.util.ArrayList;
/*    */ import java.util.List;
/*    */ import java.util.Random;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public abstract class ej<T>
/*    */   extends rh<T>
/*    */ {
/*    */   public ej(rh.eos/moe/dragoncore/ye eos/moe/dragoncore/ye1) {
/* 21 */     super(eos/moe/dragoncore/ye1);
/*    */   }
/*    */   
/*    */   public File v(String str) {
/* 25 */     Random random = new Random();
/* 26 */     File file = new File(str + random.nextInt(10000));
/*    */     
/* 28 */     while (file.exists()) {
/* 29 */       file = new File(str + random.nextInt(10000));
/*    */     }
/*    */     
/* 32 */     return file;
/*    */   }
/*    */ 
/*    */   
/*    */   public void v(List<dj> list, xn xn1, dj dj1, long l) throws pg {
/* 37 */     int i = v(list, dj1);
/*    */     
/* 39 */     if (i == -1) {
/* 40 */       throw new pg("Could not locate modified file header in zipModel");
/*    */     }
/*    */     
/* 43 */     for (int j = i + 1; j < list.size(); j++) {
/* 44 */       dj dj2 = list.get(j);
/* 45 */       dj2.y(dj2.s() + l);
/*    */       
/* 47 */       if (xn1.z() && dj2
/* 48 */         .v() != null && dj2
/* 49 */         .v().v() != -1L)
/*    */       {
/* 51 */         dj2.v().v(dj2
/* 52 */             .v().v() + l);
/*    */       }
/*    */     } 
/*    */   }
/*    */ 
/*    */   
/*    */   public void v(boolean bool, File file1, File file2) throws pg {
/* 59 */     if (bool) {
/* 60 */       v(file1, file2);
/*    */     }
/* 62 */     else if (!file2.delete()) {
/* 63 */       throw new pg("Could not delete temporary file");
/*    */     } 
/*    */   }
/*    */ 
/*    */ 
/*    */   
/*    */   public long v(RandomAccessFile randomAccessFile, OutputStream outputStream, long l1, long l2, hn hn1) throws IOException {
/* 70 */     dd.v(randomAccessFile, outputStream, l1, l1 + l2, hn1);
/* 71 */     return l2;
/*    */   }
/*    */   
/*    */   public List<dj> v(List<?> list) {
/* 75 */     List<dj> list1 = new ArrayList(list);
/* 76 */     list1.sort((a, dj1) -> a.v().equals(dj1.v()) ? 0 : ((a.s() < dj1.s()) ? -1 : 1));
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */     
/* 84 */     return list1;
/*    */   }
/*    */ 
/*    */   
/*    */   public long v(List<dj> list, dj dj1, xn xn1) throws pg {
/* 89 */     int i = v(list, dj1);
/*    */     
/* 91 */     if (i == list.size() - 1) {
/* 92 */       return dn.v(xn1);
/*    */     }
/* 94 */     return ((dj)list.get(i + 1)).s();
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\ej.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */